import requset from '@/utils/requset'

// 获取工单搜索
export const orderSearch = (params) => requset({
  url: 'task-service/task/search',
  params
})
// 获取补货预警值
export const EarlyWarning = () => requset({
  url: '/task-service/task/supplyAlertValue'
})
// 设置自动补货工单阈值
export const Automatic = (data) => requset({
  url: '/task-service/task/autoSupplyConfig',
  method: 'post',
  data
})
// 获取工单详情
export const getDetails = (data) => requset({
  url: `/task-service/task/taskInfo/${data}`
})
// 获取补货详情
export const Replenishment = (data) => requset({
  url: `/task-service/taskDetails/${data}`
})
